package com.powergisol.gis.service.impl;

import com.powergisol.gis.service.MondbDataService;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import org.springframework.stereotype.Component;

/**
 * Date: 2019/9/19  14:19
 * Description:
 */
@Component
public class MondbDataServiceImpl implements MondbDataService {

    @Override
    @HystrixCommand(commandProperties = {
            @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds",value = "3000")
    })
    public String getFileUrl(String serviceName, String uuid) {
        return null;
    }

    @Override
    public void delByUuid(String uuid) {

    }
    @Override
    @HystrixCommand(commandProperties = {
            @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds",value = "3000")
    })
    public Boolean upByMD5(String uuid, String key, String object) {
        return null;
    }


    @Override
    @HystrixCommand(commandProperties = {
            @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds",value = "3000")
    })
    public String test() {
        System.out.println(1);
        throw new RuntimeException();
        //return null;
    }
}
